package com.quanyan.user.service.impl;

import com.quanyan.user.mapper.TbSysLabelMapper;
import com.quanyan.user.model.db.TbSysLabel;
import com.quanyan.user.model.db.TbSysLabelExample;
import com.quanyan.user.service.SysLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/3/22.
 */
@Service
public class SysLabelServiceImpl implements SysLabelService {

    @Autowired
    private TbSysLabelMapper tbSysLabelMapper;


    public List<TbSysLabel> batchLabelByIds(List<Integer> ids){
        TbSysLabelExample tbSysLabelExample = new TbSysLabelExample();
        TbSysLabelExample.Criteria criteria = tbSysLabelExample.createCriteria();
        criteria.andIdIn(ids);
        criteria.andIsDeleteEqualTo(false);
        return tbSysLabelMapper.selectByExample(tbSysLabelExample);
    }

}
